package com.shiwenping.reply.net.domain;

import com.shiwenping.reply.net.RxDownLoadManager;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 *
 * @author shiwenping
 * @date 17-11-9 下午8:21
 */

public class FileItemResult extends RealmObject implements RxDownLoadManager.RxDownLoadCallBack{

    /**
     * id : 22
     * name : Call580工作手机.pdf
     * md5 : 48c95c4d5f3823c7ddf02ebbd71a9c0a
     * size : 6591232
     * show_order : 1
     * file_tag : 产品资料
     * send_count : 10
     * create_date : 2017-10-24 17:27:50
     * update_date : 2017-10-24 17:27:50
     * is_often : 1
     * user_id : 23
     * cid : 215
     * file_url : resource://qk_wd/48c95c4d5f3823c7ddf02ebbd71a9c0a.pdf
     * file_http_url : http://qk.call580.com:8080/resource/qk_wd/48c95c4d5f3823c7ddf02ebbd71a9c0a.pdf
     */
    @PrimaryKey
    private String id;
    private String name;
    private String md5;
    private String size;
    private String show_order;
    private String file_tag;
    private String send_count;
    private String create_date;
    private String update_date;
    private String is_often;
    private String user_id;
    private String cid;
    private String file_url;
    private String file_http_url;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getShow_order() {
        return show_order;
    }

    public void setShow_order(String show_order) {
        this.show_order = show_order;
    }

    public String getFile_tag() {
        return file_tag;
    }

    public void setFile_tag(String file_tag) {
        this.file_tag = file_tag;
    }

    public String getSend_count() {
        return send_count;
    }

    public void setSend_count(String send_count) {
        this.send_count = send_count;
    }

    public String getCreate_date() {
        return create_date;
    }

    public void setCreate_date(String create_date) {
        this.create_date = create_date;
    }

    public String getUpdate_date() {
        return update_date;
    }

    public void setUpdate_date(String update_date) {
        this.update_date = update_date;
    }

    public String getIs_often() {
        return is_often;
    }

    public void setIs_often(String is_often) {
        this.is_often = is_often;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getFile_url() {
        return file_url;
    }

    public void setFile_url(String file_url) {
        this.file_url = file_url;
    }

    public String getFile_http_url() {
        return file_http_url;
    }

    public void setFile_http_url(String file_http_url) {
        this.file_http_url = file_http_url;
    }

    @Override
    public String getUrl() {
        return getFile_http_url();
    }

    @Override
    public String getFileName() {
        return getName();
    }

    @Override
    public Object tag() {
        return this;
    }
}
